package org.dev.biz_login.api

import com.google.gson.JsonObject
import org.dev.hi.library.restful.HiCall
import org.dev.hi.library.restful.annotation.Field
import org.dev.hi.library.restful.annotation.GET
import org.dev.hi.library.restful.annotation.POST
import org.dev.service_login.UserProfile

/**
 * Author WenPing
 * CreateTime 2021/5/6.
 * Description:
 */
interface AccountApi {
    @POST("user/login")
    fun login(
        @Field("userName") userName: String,
        @Field("password") password: String
    ): HiCall<String>


    @POST("user/registration")
    fun register(
        @Field("userName") userName: String,
        @Field("password") password: String,
        @Field("imoocId") imoocId:
        String, @Field("orderId") orderId: String
    ): HiCall<String>


    @GET("user/profile")
    fun profile(): HiCall<UserProfile>

//    @GET("notice")
//    fun notice(): HiCall<CourseNotice>
}